package com.zr.dao;

import java.util.List;

import com.zr.model.Cgoodstype;
import com.zr.model.Clogstate;
import com.zr.model.Corder;
import com.zr.model.Costate;
import com.zr.model.Cotype;
import com.zr.model.Cuser;

public interface OrderDao<T> extends BaseDao<T>{
       /**
        * 获取需要显示的订单内容
        * @param page 当前页码
        * @param rows 每页的最大数量
        * @return 订单内容集合
        */
	   public List<Corder> getAllOrderInfo(int page,int rows,int uid);
	   
	   /**
	    * 获取显示的订单总数
	    * @return
	    */
	   public Long getCountByoid(int uid);
	   /**
	    * 添加订单
	    * @param corder
	    * @param goodstype
	    * @param logstate
	    * @param ostate
	    * @param otype
	    * @return
	    */
	   public int insertOrder(Corder corder,Cgoodstype goodstype,Clogstate logstate, Costate ostate,Cotype otype,int uid);
	   
	   public List<Corder> getCurrentOrderInfo(int page,int rows,int disid);
	   
	   public int addOrder(Corder corder,Cgoodstype goodstype,Clogstate logstate, Costate ostate,Cotype otype);
	   
	 
}
